package com.zhukaoguan.boot11.mapper;


import com.zhukaoguan.boot11.entity.Banner;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BannerMapper {

    @Select("select * from banner")
    List<com.zhukaoguan.boot11.entity.Banner> select();

    @Delete("delete from banner where id=#{id}")
    void delete(int id);

    @Insert("insert into banner values(null,#{url})")
    int insert(Banner banner);
}
